package gate

import (
	"talent.com/agency_im/common/msg"
	"talent.com/agency_im/modules/core"
	"talent.com/server/durotar.git/leaf"
	"talent.com/server/durotar.git/proto"
)

func init() {
	processor := leaf.MsgProcessor

	processor.SetRouter(&proto.Ping{}, core.ChanRPC)
	processor.SetRouter(&msg.AuthReq{}, core.ChanRPC)
	processor.SetRouter(&msg.InTopicReq{}, core.ChanRPC)
	processor.SetRouter(&msg.ChatReq{}, core.ChanRPC)
	processor.SetRouter(&msg.ChatNTAck{}, core.ChanRPC)
}
